import { constantRoutes } from '@/router'
export default {
  namespaced: true,
  state: {
    // 定义左侧渲染草单列表
    menuslist: [...constantRoutes]
  },
  mutations: {
    // 动态添加动态路由进行合并
    setMenuslist(state, asyncRoutes) {
      state.menuslist = [...constantRoutes, ...asyncRoutes]
    }
  }
}
